package com.xhx.inputbox;

import android.text.Spannable;

public class MessageItem {
    // 使用 CharSequence 而不是 String，是为了能携带表情(ImageSpan)的富文本信息
    private CharSequence content;
    private MessageType type;

    public enum MessageType {
        SENT, // 发送的消息
        RECEIVED // 接收的消息
    }

    public MessageItem(CharSequence content, MessageType type) {
        this.content = content;
        this.type = type;
    }

    public CharSequence getContent() {
        return content;
    }

    public MessageType getType() {
        return type;
    }
}